package com.dhcc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.dhcc.service.StockService;

@RestController
public class StockControllor {

	@Autowired
	private StockService stockService;
	
	@GetMapping("/deduct")
	public String deduct() {
		stockService.deduck();
		return "售卖了库存，库存减少了...";
	}
}
